package com.magus.project.yddemo.entity;

import javax.persistence.Column;
import javax.persistence.ConstraintMode;
import javax.persistence.Entity;
import javax.persistence.ForeignKey;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.magus.framework.core.entity.BaseEntity;

/**
 * 指标数据(电厂端)
 * 
 * @author Zhang JiaWei
 * @date 2018-01-18 15:52
 */
@Entity
@Table(name = "YDDEMO_INDICATOR_DATA_PLANT")
public class IndicatorDataPlant extends BaseEntity {

	/**   */
	private static final long serialVersionUID = 1L;

	@ManyToOne
	@JoinColumn(name = "INDICATOR_DETAIL_ID_", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
	private IndicatorDetail indicatorDetail;

	@Column(name = "VALUE_")
	private Double value;

	@Column(name = "TIME_")
	private Long time;

	@Column(name = "DIMENSION_", length = 20)
	private String dimension;

	@Column(name = "BATCH_CODE_", length = 36)
	private String batchCode;

	public IndicatorDetail getIndicatorDetail() {
		return indicatorDetail;
	}

	public void setIndicatorDetail(IndicatorDetail indicatorDetail) {
		this.indicatorDetail = indicatorDetail;
	}

	public Double getValue() {
		return value;
	}

	public void setValue(Double value) {
		this.value = value;
	}

	public Long getTime() {
		return time;
	}

	public void setTime(Long time) {
		this.time = time;
	}

	public String getDimension() {
		return dimension;
	}

	public void setDimension(String dimension) {
		this.dimension = dimension;
	}

	public String getBatchCode() {
		return batchCode;
	}

	public void setBatchCode(String batchCode) {
		this.batchCode = batchCode;
	}

}
